package com.lzxm.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lzxm.dao.UserDao;
import com.lzxm.po.User;

@Service("userService")
public class UserService{

	@Resource
	private UserDao userDao;
	
	public User getUser(String username,String password){
		return userDao.selectByUsername(username, password);
	}
	
	public void updateLogin(User user){
		 userDao.updatLogin(user);
	}
	
	public String getUsernameById(int user_id){
		return userDao.getUsernameById(user_id);
	}
}
